<%@ Page Title="Payment Calculator,  Amortization Schedule, Boat &amp; Yacht Loans, Hewish" Language="C#" MasterPageFile="~/Huish.master" AutoEventWireup="true" CodeBehind="amortizer.aspx.cs" Inherits="Huish.amortizer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<style type="text/css">
        .style8
        {
            text-align: left;
        }
    .style9 {
	text-align: right;
}
    .style10 {
	text-align: center;
	margin-right: auto;
	margin-left: auto;
}
    .style11 {
	color: #00ACEE;
}
    .style12 {
		text-align: left;
		color: #00ACEE;
	}
	.style13 {
		color: #1560BD;
		font-family: Arial, Helvetica, sans-serif;
	}
    </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="server">
	<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
<asp:UpdatePanel runat="server">
<ContentTemplate>
<div class="style10"> 

    <span> 
        
        <table align="center">
            <tr>
                <td class="style9">
                    &nbsp;</td>
                <td class="style8">
                    &nbsp;</td>
                <td class="style12">
                    &nbsp;</td>
            </tr>
            <tr>
				<td class="style9">&nbsp;</td>
				<td class="style8">&nbsp;</td>
				<td class="style12">&nbsp;</td>
			</tr>
			<tr>
				<td class="style9">Principle Amount:</td>
				<td class="style8">
				<asp:textbox ID="dfnPrinciple" runat="server">100000</asp:textbox>
				</td>
				<td class="style12">Dollars</td>
			</tr>
            <tr>
                <td class="style9">
                    Annual Interest Rate:</td>
                <td class="style8">
                    <asp:TextBox ID="dfnAnnualRate" runat="server">7.000</asp:TextBox>
                </td>
                <td class="style8">
                    %</td>
            </tr>
            <tr>
                <td class="style9">
                    Payments per year:</td>
                <td class="style8">
                    <asp:TextBox ID="dfnPaymentsPerYear" runat="server">12</asp:TextBox>
                </td>
                <td class="style12">
                    Payments</td>
            </tr>
            <tr>
                <td class="style9">
                    Total Payments:</td>
                <td class="style8">
                    <asp:TextBox ID="dfnTotalPayments" runat="server">120</asp:TextBox>
                </td>
                <td class="style11">
                    Number&nbsp; of years * Payments per year</td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    <asp:Button ID="btnCalculate" runat="server" onclick="btnCalculate_Click1" 
                        Text="Calculate" Width="148px" BackColor="#003745" ForeColor="White" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
				<td>&nbsp;</td>
				<td>&nbsp;</td>
				<td>&nbsp;</td>
			</tr>
            <tr>
                <td colspan="3">
                    <img alt="Huish Marine Group" height="246" src="Img/Huish_The_Name_to_Remember.jpeg" width="432" /></td>
            </tr>
        	<tr>
				<td colspan="3"> &nbsp;</td>
			</tr>
        	<tr>
				<td colspan="3">Amortization Schedule Developed by
				<span class="style13">
				<img alt="onSoft" height="20" src="Img/onSoft.png" width="76" />
				</span>&nbsp;All Rights Reserved</td>
			</tr>
        </table>
        
        <asp:Label ID="lblMessage" runat="server"></asp:Label>
        
        </span>

    <br />
    <br />

    <span>
    
            <asp:GridView ID="grdSchedule" runat="server" 
        AutoGenerateColumns="False" style="text-align: center">
                <Columns>
                    <asp:BoundField DataField="Seq" HeaderText="Payment Number" />
                    <asp:BoundField DataField="PrinciplePayment" DataFormatString="{0:c}" 
                        HeaderText="Principle Payment" />
                    <asp:BoundField DataField="InterestPayment" DataFormatString="{0:c}" 
                        HeaderText="Interest Payment" />
                    <asp:BoundField DataField="MonthlyPayment" DataFormatString="{0:c}" 
                        HeaderText="Monthly Payment" />
                    <asp:BoundField DataField="Balance" DataFormatString="{0:c}" 
                        HeaderText="Balance" />
                </Columns>
            </asp:GridView>
                <br />
                <asp:TextBox ID="dfsEmailAddress" runat="server" Visible="False" 
        ValidationGroup="EmailMe"></asp:TextBox>
    
    <asp:Button ID="btnEmailMe" runat="server" onclick="btnEmailMe_Click" 
        Text="Email me this schedule" Visible="False" ValidationGroup="EmailMe" BackColor="#003745" ForeColor="White" />
        
        <br />
    <asp:RequiredFieldValidator ID="RequiredEmail" runat="server" 
        ControlToValidate="dfsEmailAddress" 
        ErrorMessage="Please enter your email address" ValidationGroup="EmailMe"></asp:RequiredFieldValidator>
    <br />
    <asp:RegularExpressionValidator ID="EmailFormat" runat="server" 
        ControlToValidate="dfsEmailAddress" 
        ErrorMessage="Please enter a valid email address" 
        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
        ValidationGroup="EmailMe"></asp:RegularExpressionValidator>
        
    </span>

    <br />
    
</div>
</ContentTemplate>
</asp:UpdatePanel>

</asp:Content>
<asp:Content id="Content4" runat="server" contentplaceholderid="Buttons">

			<div id="buttons">
			<a href="Default.aspx">
			<img alt="Home" height="30" src="Img/Home.gif" width="189" class="style1" id="img1" onclick="FP_preloadImgs(/*url*/'Img/0Home.gif')" onmouseout="FP_swapImgRestore()" onmouseover="FP_swapImg(1,1,/*id*/'img1',/*url*/'Img/0Home.gif')" /></a><br />
				<a href="hot_deals.aspx">
			<img alt="Yachts For Sale" height="30" src="Img/Yachts_For_Sale.gif" width="189" class="style1" id="img2" onclick="FP_preloadImgs(/*url*/'Img/0Yachts_For_Sale.gif')" onmouseout="FP_swapImgRestore()" onmouseover="FP_swapImg(1,1,/*id*/'img2',/*url*/'Img/0Yachts_For_Sale.gif')" /></a><br />
			<a href="yachts_for_charter.aspx">
			<img alt="Yachts For Charter" height="30" src="Img/Yachts_For_Charter.gif" width="189" class="style1" id="img3" onclick="FP_preloadImgs(/*url*/'Img/0Yachts_For_Charter.gif')" onmouseout="FP_swapImgRestore()" onmouseover="FP_swapImg(1,1,/*id*/'img3',/*url*/'Img/0Yachts_For_Charter.gif')" /></a><br />
			<a href="forms.aspx">
			<img alt="Forms" height="30" src="Img/Forms.gif" width="189" class="style1" id="img11" onclick="FP_preloadImgs(/*url*/'Img/0Forms.gif')" onmouseout="FP_swapImgRestore()" onmouseover="FP_swapImg(1,1,/*id*/'img11',/*url*/'Img/0Forms.gif')" /></a><br />
			
			
			<a href="sell_my_yacht.aspx">
		    <img id="img17" alt="Sell My Yacht" onclick="FP_preloadImgs(/*url*/'Img/0Sellmyyacht.gif')" onmouseout="FP_swapImgRestore()" onmouseover="FP_swapImg(1,1,/*id*/'img17',/*url*/'Img/0Sellmyyacht.gif')" src="Img/Sellmyyacht.gif" class="style1" /></a><br />

			<a href="boat_shows.aspx">
			<img id="img18" alt="Boat Shows" onmouseout="FP_swapImgRestore()" onmouseover="FP_swapImg(1,1,/*id*/'img18',/*url*/'Img/0boat_ShowsBTN.gif')" src="Img/boat_ShowsBTN.gif" class="style1" onmousemove="FP_preloadImgs(/*url*/'Img/0boat_ShowsBTN.gif')" /></a><br />

			
				<a href="Magazine-ADS.aspx" target="_self">
			<img id="img16" alt="Magazine Articles" onclick="FP_preloadImgs(/*url*/'Img/0Magazine.gif')" onmouseout="FP_swapImgRestore()" onmouseover="FP_swapImg(1,1,/*id*/'img16',/*url*/'Img/0Magazine.gif')" src="Img/Magazine.gif" class="style1" /></a><br />
			<a href="financing.aspx">
			<img alt="Financing" height="30" src="Img/Financing.gif" width="189" class="style1" id="img6" onclick="FP_preloadImgs(/*url*/'Img/0Financing.gif')" onmouseout="FP_swapImgRestore()" onmouseover="FP_swapImg(1,1,/*id*/'img6',/*url*/'Img/0Financing.gif')" /></a><br />
			
			<a href="links.aspx">
			<img alt="Links" height="30" src="Img/Links.gif" width="189" class="style1" id="img4" onclick="FP_preloadImgs(/*url*/'Img/0Links.gif')" onmouseout="FP_swapImgRestore()" onmouseover="FP_swapImg(1,1,/*id*/'img4',/*url*/'Img/0Links.gif')" /></a><br />
			
			
			<a href="http://www.allyachtregistries.com/" target="_blank">
			<img alt="Yacht Registry" height="30" src="Img/Yacht_Registry.gif" width="189" id="img5" onclick="FP_preloadImgs(/*url*/'Img/0Yacht_Registry.gif')" onmouseout="FP_swapImgRestore()" onmouseover="FP_swapImg(1,1,/*id*/'img5',/*url*/'Img/0Yacht_Registry.gif')" class="style1" /></a><br />
			
			<a href="career_opportunities.aspx">
			<img alt="Career Opportunities" height="30" src="Img/Career_Opportunities.gif" width="189" class="style1" id="img8" onclick="FP_preloadImgs(/*url*/'Img/0Career_Opportunities.gif')" onmouseout="FP_swapImgRestore()" onmouseover="FP_swapImg(1,1,/*id*/'img8',/*url*/'Img/0Career_Opportunities.gif')" /></a><br />
			
			<a href="franchises.aspx">
			<img id="img15" alt="Franchises" class="style1" height="30" onclick="FP_preloadImgs(/*url*/'Img/0Huish_Franchises.gif')" onmouseout="FP_swapImgRestore()" onmouseover="FP_swapImg(1,1,/*id*/'img15',/*url*/'Img/0Huish_Franchises.gif')" src="Img/Huish_Franchises.gif" width="189" /></a><br />
			
			
			<a href="Dockage%20.aspx">
			<img alt="Boutique" height="30" src="Img/Boutique.gif" width="189" class="style1" id="img12" onclick="FP_preloadImgs(/*url*/'Img/0Boutique.gif')" onmouseout="FP_swapImgRestore()" onmouseover="FP_swapImg(1,1,/*id*/'img12',/*url*/'Img/0Boutique.gif')" /></a><br />
			
			
			<a href="location_map.aspx">
			<img alt="Location Map" height="30" src="Img/Location_Map.gif" width="189" class="style1" id="img10" onclick="FP_preloadImgs(/*url*/'Img/0Location_Map.gif')" onmouseout="FP_swapImgRestore()" onmouseover="FP_swapImg(1,1,/*id*/'img10',/*url*/'Img/0Location_Map.gif')" /></a><br />
			
			
			<a href="brokers.aspx">
			<img alt="Brokers" height="30" src="Img/Brokers.gif" width="189" class="style1" id="img7" onclick="FP_preloadImgs(/*url*/'Img/0Brokers.gif')" onmouseout="FP_swapImgRestore()" onmouseover="FP_swapImg(1,1,/*id*/'img7',/*url*/'Img/0Brokers.gif')" /></a><br />
			
			
			
			
			
			<a href="contactus.aspx">
			<img alt="Contact Us" height="30" src="Img/Contact_Us.gif" width="189" class="style1" id="img9" onclick="FP_preloadImgs(/*url*/'Img/0Contact_Us.gif')" onmouseout="FP_swapImgRestore()" onmouseover="FP_swapImg(1,1,/*id*/'img9',/*url*/'Img/0Contact_Us.gif')" /></a>
				<div id="FLORIDA" class="style7">
					<a href="Hot-Buys.aspx" target="_self">
					<img alt="HOTTEST BUYS!!" height="127" src="Img/HOTTEST-BUYS!!.png" width="178" class="style1" /></a></div>
				
			
			</div>
		
		
		


</asp:Content>

